package com.xinlianshiye.im.response

import com.xinlianshiye.im.bean.User

class UserInfo {

    // 用户id
    var id: Int? = null
    //用户昵称
    var username: String? = null
    //用户个性签名
    var sign: String? = null
    //用户头像
    var avatar: String? = null

    companion object {
        @JvmStatic
        fun init(user: User): UserInfo {
            val userInfo = UserInfo()
            userInfo.id = user.id
            userInfo.username = user.username
            userInfo.sign = user.sign
            userInfo.avatar = user.avatar
            return userInfo
        }
    }
}